How to restart, start and stop Apache web server from the command line How to restart, start and stop Apache web server from the command line using the apachectl command, also how to restart and stop gracefully ... To restart, start or stop Apache web server from the command line interface using either Linux or Mac OSX, use